home *** CD-ROM | disk | FTP | other *** search
- package views
- {
- import flash.accessibility.*;
- import flash.debugger.*;
- import flash.display.*;
- import flash.errors.*;
- import flash.events.*;
- import flash.external.*;
- import flash.filters.*;
- import flash.geom.*;
- import flash.media.*;
- import flash.net.*;
- import flash.printing.*;
- import flash.profiler.*;
- import flash.system.*;
- import flash.text.*;
- import flash.ui.*;
- import flash.utils.*;
- import flash.xml.*;
- import mx.binding.*;
- import mx.containers.Canvas;
- import mx.controls.Image;
- import mx.controls.Label;
- import mx.core.UIComponentDescriptor;
- import mx.core.mx_internal;
- import mx.events.PropertyChangeEvent;
- import mx.styles.*;
-
- public class CoverThumb extends Canvas
- {
- private static var _watcherSetupUtil:IWatcherSetupUtil;
-
- private var _bindings:Array;
-
- [Bindable]
- private var _1916495839imgFile:String;
-
- private var btnDate:Class;
-
- public var _bindingsByDestination:Object;
-
- [Bindable]
- private var _607087478_Image2:Image;
-
- [Bindable]
- private var _1959266596labelTxt:String;
-
- public var _bindingsBeginWithWord:Object;
-
- private var _embed_mxml____embedded_assets_cover_drop_shadow_png_247875701:Class;
-
- [Bindable]
- private var _681920764_Label1:Label;
-
- [Bindable]
- private var _681210700highlight:Image;
-
- private var _watchers:Array;
-
- private var _documentDescriptor_:UIComponentDescriptor;
-
- public function CoverThumb()
- {
- _documentDescriptor_ = new UIComponentDescriptor({
- "type":Canvas,
- "propertiesFactory":function():Object
- {
- return {
- "width":77,
- "height":118,
- "childDescriptors":[new UIComponentDescriptor({
- "type":Image,
- "propertiesFactory":function():Object
- {
- return {"source":_embed_mxml____embedded_assets_cover_drop_shadow_png_247875701};
- }
- }),new UIComponentDescriptor({
- "type":Image,
- "id":"_Image2",
- "propertiesFactory":function():Object
- {
- return {
- "buttonMode":true,
- "width":69,
- "height":90
- };
- }
- }),new UIComponentDescriptor({
- "type":Image,
- "id":"highlight",
- "propertiesFactory":function():Object
- {
- return {
- "visible":false,
- "y":96,
- "width":69,
- "height":30
- };
- }
- }),new UIComponentDescriptor({
- "type":Label,
- "id":"_Label1",
- "stylesFactory":function():void
- {
- this.textAlign = "center";
- },
- "propertiesFactory":function():Object
- {
- return {
- "buttonMode":true,
- "width":70,
- "height":22,
- "y":96
- };
- }
- })]
- };
- }
- });
- btnDate = CoverThumb_btnDate;
- _embed_mxml____embedded_assets_cover_drop_shadow_png_247875701 = CoverThumb__embed_mxml____embedded_assets_cover_drop_shadow_png_247875701;
- super();
- mx_internal::_document = this;
- this.width = 77;
- this.height = 118;
- this.horizontalScrollPolicy = "off";
- this.verticalScrollPolicy = "off";
- this.addEventListener("rollOver",___Canvas1_rollOver);
- this.addEventListener("rollOut",___Canvas1_rollOut);
- }
-
- public static function set watcherSetupUtil(param1:IWatcherSetupUtil) : void
- {
- CoverThumb._watcherSetupUtil = param1;
- }
-
- private function _CoverThumb_bindingsSetup() : void
- {
- var binding:Binding = null;
- if(!_bindings)
- {
- _bindings = [];
- }
- if(!_watchers)
- {
- _watchers = [];
- }
- binding = new Binding(this,function():Object
- {
- return "images/thumbs/" + imgFile;
- },function(param1:Object):void
- {
- _Image2.source = param1;
- },"_Image2.source");
- _bindings[0] = binding;
- binding = new Binding(this,function():Object
- {
- return btnDate;
- },function(param1:Object):void
- {
- highlight.source = param1;
- },"highlight.source");
- _bindings[1] = binding;
- binding = new Binding(this,function():String
- {
- var _loc1_:* = undefined;
- var _loc2_:* = undefined;
- _loc1_ = labelTxt;
- return _loc1_ == undefined ? null : String(_loc1_);
- },function(param1:String):void
- {
- _Label1.text = param1;
- },"_Label1.text");
- _bindings[2] = binding;
- }
-
- private function rollOutHandler(param1:Event) : void
- {
- this.highlight.visible = false;
- }
-
- [Bindable(event="propertyChange")]
- public function get highlight() : Image
- {
- return this._681210700highlight;
- }
-
- [Bindable(event="propertyChange")]
- public function get _Label1() : Label
- {
- return this._681920764_Label1;
- }
-
- public function ___Canvas1_rollOver(param1:MouseEvent) : void
- {
- rollOverHandler(param1);
- }
-
- public function set highlight(param1:Image) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._681210700highlight;
- if(_loc2_ !== param1)
- {
- this._681210700highlight = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"highlight",_loc2_,param1));
- }
- }
-
- public function set labelTxt(param1:String) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._1959266596labelTxt;
- if(_loc2_ !== param1)
- {
- this._1959266596labelTxt = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"labelTxt",_loc2_,param1));
- }
- }
-
- public function set _Label1(param1:Label) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._681920764_Label1;
- if(_loc2_ !== param1)
- {
- this._681920764_Label1 = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"_Label1",_loc2_,param1));
- }
- }
-
- private function _CoverThumb_bindingExprs() : void
- {
- var _loc1_:* = undefined;
- _loc1_ = "images/thumbs/" + imgFile;
- _loc1_ = btnDate;
- _loc1_ = labelTxt;
- }
-
- public function ___Canvas1_rollOut(param1:MouseEvent) : void
- {
- rollOutHandler(param1);
- }
-
- [Bindable(event="propertyChange")]
- public function get labelTxt() : String
- {
- return this._1959266596labelTxt;
- }
-
- public function set _Image2(param1:Image) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._607087478_Image2;
- if(_loc2_ !== param1)
- {
- this._607087478_Image2 = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"_Image2",_loc2_,param1));
- }
- }
-
- private function rollOverHandler(param1:Event) : void
- {
- this.highlight.visible = true;
- }
-
- [Bindable(event="propertyChange")]
- public function get _Image2() : Image
- {
- return this._607087478_Image2;
- }
-
- override public function initialize() : void
- {
- var target:CoverThumb = null;
- var watcherSetupUtilClass:Object = null;
- mx_internal::setDocumentDescriptor(_documentDescriptor_);
- _CoverThumb_bindingsSetup();
- target = this;
- if(_watcherSetupUtil == null)
- {
- watcherSetupUtilClass = getDefinitionByName("_views_CoverThumbWatcherSetupUtil");
- watcherSetupUtilClass["init"](null);
- }
- _watcherSetupUtil.setup(this,function(param1:String):*
- {
- return target[param1];
- },_bindings,_watchers);
- super.initialize();
- }
-
- public function set imgFile(param1:String) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._1916495839imgFile;
- if(_loc2_ !== param1)
- {
- this._1916495839imgFile = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"imgFile",_loc2_,param1));
- }
- }
-
- [Bindable(event="propertyChange")]
- public function get imgFile() : String
- {
- return this._1916495839imgFile;
- }
- }
- }
-
-